# from services.zhihu import fetch_zhihu_hotspot_to_db

PLATFORM_SCHEDULE = {
    # 平台名称
    "知乎": {
        # 定时执行的函数
        "func_path": "services.zhihu.fetch_zhihu_hotspot_to_db",
        # 执行时间戳 weeks 周 days 天 hours 小时 minutes 分钟 seconds 秒
        "interval": {"minutes": 20},
        # 计划任务的 ID 自己定义，唯一
        "id": "zhihu",
        # 计划任务的名称 自己定义
        "name": "抓取知乎热榜",
    },
    "懂车帝": {
        "func_path": "services.dongchedi.fetch_dongchedi_hotspot_to_db",
        "interval": {"minutes": 20},
        "id": "dongchedi",
        "name": "抓取懂车帝热搜",
    },
    "腾讯新闻": {
        "func_path": "services.qqnews.fetch_qqnews_spot_to_db",
        "interval": {"minutes": 20},
        "id": "qqnews",
        "name": "抓取腾讯新闻数据",
    },
    "发现报告": {
        "func_path": "services.fxbaogao.fetch_fxbaogao_hotspot_to_db",
        "interval": {"days": 1},
        "id": "fxbaogao",
        "name": "抓取发现报告热点",
    },
    "澎湃新闻": {
        "func_path": "services.thepaper.fetch_thepaper_hotspot_to_db",
        "interval": {"minutes": 20},
        "id": "thepaper",
        "name": "抓取澎湃新闻热榜",
    },
    "少数派": {
        "func_path": "services.sspai.fetch_sspai_hotspot_to_db",
        "interval": {"hours": 2},
        "id": "sspai",
        "name": "抓取少数派数据",
    },
    "小饭桌": {
        "func_path": "services.xfz.fetch_xfz_hotspot_to_db",
        "interval": {"days": 1},
        "id": "xfz",
        "name": "抓取小饭桌数据",
    },
    "微博": {
        "func_path": "services.weibo.fetch_weibo_hotspot_to_db",
        "interval": {"minutes": 20},
        "id": "weibo",
        "name": "抓取微博数据",
    },
    "抖音热搜": {
        "func_path": "services.douyin.fetch_douyin_hotspot_to_db",
        "interval": {"minutes": 20},
        "id": "douyin",
        "name": "抓取抖音热榜",
    },
    "IT之家": {
        "func_path": "services.ithome.fetch_ithome_hotspot_to_db",
        "interval": {"days": 1},
        "id": "ithome",
        "name": "抓取IT之家数据",
    },
     "百度贴吧": {
        "func_path": "services.baidutieba.fetch_baidutieba_hotspot_to_db",
        "interval": {"minutes": 20},
        "id": "baidutieba",
        "name": "抓取百度贴吧热议榜",
    },
    "36氪": {
        "func_path": "services.kr36.fetch_kr36_hotspot_to_db",
        "interval": {"hours": 1},
        "id": "kr36",
        "name": "抓取36氪数据",
    },
    "定时删除": {
        "func_path": "services.hotspot.delete_old_hotspot_data",
        "interval": {"hours": 2},
        "id": "data-delete",
        "name": "定时删除旧数据",
    },
}
